package com.mask.im.business.strategy.impl.context;
import com.mask.im.business.enums.RecoverAccountEnum;
import com.mask.im.business.model.vo.IdentityVerificationVO;
import com.mask.im.business.strategy.RecoverAccountStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RecoverAccountContext {


	@Autowired
	private Map<String, RecoverAccountStrategy> map;

	public List<String> executeRecoverPassword(String type, IdentityVerificationVO verificationVO){
		return map.get(RecoverAccountEnum.execute(type)).findAccount(verificationVO);
	}
}
